#include "devices_water.h"

void devices_water_init(void)
{
RCC->APB2ENR |= (1 << 3);
GPIOB->CRH &=~(255 << 16);
GPIOB->CRH |= ( 1 << 17 );
GPIOB->CRH |= ( 1 << 21 );	

GPIOB->ODR &=~(1 << 12 );
GPIOB->ODR &=~(1 << 13 );
}

void devices_water1_open(void)
{
GPIOB -> ODR |= ( 1 << 12 );

}
void devices_water1_close(void)
{
GPIOB -> ODR &=~ ( 1 << 12 );

}
void devices_water2_open(void)
{
	
GPIOB -> ODR |= ( 1 << 13 );

}
void devices_water2_close(void)
{
	
GPIOB -> ODR &=~( 1 << 13 );

}